// @ts-ignore
/* eslint-disable */
import { request } from 'umi';

/** json格式化，type=0随机生成，type=1格式化，type=2压缩，type=3转义，type=4反转义, type=5转换为Java POST /api/utils/json/format */
export async function jsonTextToJsonUsingPOST(
  body: API.JsonFormatParam,
  options?: { [key: string]: any },
) {
  return request<Record<string, any>>('/api/utils/json/format', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
